Skip to content

mcpx: cap the ask-abandon body read; move the audience window to defaults.json - #11329

Merged
dezren39 merged 1 commit into
mainfrom
fix/mcpx-nightly-guards
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
fix/mcpx-nightly-guards

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Fixes #11327 (the mcpx nix build failure is TestNoUnboundedBodyReaders).

Before: the scheduled mcpx test and mcpx nix build runs on main (2a7cbd1) failed on two guard tests:

  • TestNoUnboundedBodyReaders: routes_proto.go:909-910 read r.Body with no size ceiling.
  • TestNoPackageRedeclaresADefault: internal/elicit/presence.go:31 declared const DefaultAudienceWindow = 2 * time.Minute.

After: both guards pass, so the nix build's go test phase passes too.

How:

Testing: with the repo's Go 1.27.2 toolchain, go vet on elicit, defaults and daemon is clean. go test ./internal/defaults ./internal/elicit ./internal/daemon all pass; daemon includes TestNoUnboundedBodyReaders.

Not covered here: the mcpx test e2e shards. They have failed on main since 2026-11-16, before the nightly switch, and that's a separate breakage.


Generated by Claude Code

…ults.json

Two guard tests went red on main once mcpx tests ran on schedule:

- TestNoUnboundedBodyReaders: handleAskAbandon (#8922) decoded its
  optional body with no size ceiling. It now reads through
  http.MaxBytesReader at the call body limit, like every other route.
  This is also what failed the mcpx nix build.
- TestNoPackageRedeclaresADefault: elicit's DefaultAudienceWindow
  (#2438) was an inline 2*time.Minute. It now comes from
  defaults.json (elicit.audienceWindow, 2m), an internal bound kept
  out of the settings registry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 59 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fc561c58-22b8-4e5d-9c97-3fe9b669a4ad
Commits

Reviewing files that changed from the base of the PR and between 503071e and baa7b73.

Files selected for processing: 4

  • pkgs/mcpx/internal/daemon/routes_proto.go
  • pkgs/mcpx/internal/defaults/defaults.go
  • pkgs/mcpx/internal/defaults/defaults.json
  • pkgs/mcpx/internal/elicit/presence.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@dezren39
dezren39 marked this pull request as ready for review November 17, 2026 20:30
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 20:30
@dezren39
dezren39 merged commit 5161057 into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the fix/mcpx-nightly-guards branch November 17, 2026 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main-broken: developing-today/code mcpx nix build @2a7cbd1 — basic: nix build

2 participants